# libmylibrary.a:sub.o add.o
# 	ar -rc  $@ $^
# %.o:%.cpp
# 	g++ -c $< 
# .PHONY:clean
# clean: 
# 	rm -rf sub.o add.o libmylibrary.a

libmylibrary.so:sub.o add.o
	g++ -o $@ $^ -shared 
%.o:%.cpp
	g++ -c $< -fPIC
.PHONY:clean
clean: 
	rm -rf sub.o add.o libmylibrary.so


# .PHONY:public
# public:
# 	echo "发送给other使用"

# 	mkdir other
# 	mkdir other/lib 
# 	mkdir other/include



